package com.study.meng.bigevent.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageBean<T> {
    private Integer total; // 总记录数
    private List<T> items; // 数据列表

    public PageBean(Integer total) {
        this.total = total;
    }
    public PageBean(List<T> items) {
        this.items = items;
    }
}
